package com.mairuide.phone.calltype;

import com.mairuide._frame.base.BaseRepository;
import com.mairuide._frame.base.BaseServiceProxy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zyj
 * @Date: 2018/12/18 16:46
 * @Description:
 */
@Service
public class CallTypeService extends BaseServiceProxy<CallType> {

    @Autowired
    private CallTypeRepository callTypeRepository;

    @Override
    protected BaseRepository<CallType> getBaseRepository() {
        return callTypeRepository;
    }

    public List<CallType> getList(){
        Iterable<CallType> all = callTypeRepository.findAll();
        return (List<CallType>)callTypeRepository.findAll();
    }

}
